@import "../../../common";

.order-list-container {
  box-sizing: border-box;
  padding: 24rpx 20rpx 0rpx 20rpx;

  .list {
    .item {
      box-sizing: border-box;
      padding: 0 24rpx;
      border-radius: 24rpx;
      background-color: #ffffff;
      margin-bottom: 24rpx;

      .flex {
        @include flex-space-between;
      }

      .left {
        @include flex;
      }

      .right {
        @include flex;
      }

      .driving-school {
        padding: 40rpx 0 48rpx 0;

        .left {
          text {
            @include fontStyle(32, 32, #000000, 500);
          }

          image {
            @include size(36, 36);
            margin-right: 10rpx;
          }
        }

        .right {
          &.active {
            text.right_2 {
              color: #FA8A4B;
            }
          }

          text {
            &.right_1 {
              @include fontStyle(24, 24, #666666);
              margin-right: 16rpx;
            }

            &.right_2 {
              @include fontStyle(28, 28, #666666);
            }
          }
        }
      }

      .type {
        margin-bottom: 24rpx;

        view {
          &.type_1 {
            @include fontStyle(28, 28, #000000, 500);
          }

          &.type_2 {
            @include fontStyle(28, 28, #000000, 500);
            display: flex;
            align-items: center;

            text {
              &.type_2_1 {
                @include fontStyle(20, 20, #000000, 400);
              }
            }
          }
        }
      }

      .describe {
        @include fontStyle(24, 24, #666666);
        padding-bottom: 24rpx;
      }

      .orderNo {
        @include fontStyle(24, 24, #666666);
        height: 68rpx;
        border-bottom: 1px solid #EEEEEE;
      }

      .discounts {
        margin-top: 34rpx;

        .left {
          text {
            &.discounts_1 {
              background-color: #FE5953;
              @include fontStyle(24, 24, #FFFFFF);
              @include size(24, 24, 4rpx);
              padding: 4rpx;
              margin-right: 8rpx;
            }

            &.discounts_2 {
              @include fontStyle(24, 24, #000000);
            }
          }
        }

        .right {
          @include fontStyle(28, 28, #FE5953, 600);
        }
      }

      .price {
        padding: 32rpx 0;

        .left {
          view {
            &.price_1 {
              @include fontStyle(24, 24, #666666, 400);
            }

            &.price_2 {
              margin: 0 0 0 16rpx;
              @include fontStyle(30, 30, #FF0012, 600);
              display: flex;
              align-items: center;

              text {
                &.price_2_1 {
                  font-size: 20rpx;
                }
              }
            }
          }
        }

        .right {
          view {
            @include size(174, 68, 39rpx);
            @include flex-center;
            box-sizing: border-box;
          }

          .cancel {
            border: 1rpx solid #999999;
            @include fontStyle(28, 28, #666666);
          }

          .pay {
            background-color: var(--color-theme);
            @include fontStyle(28, 28, #FFFFFF);
            margin-left: 32rpx;
          }
        }
      }
    }
  }
}

.none-container {
  height: 100%;
  background-color: #fff;

  .box {
    box-sizing: border-box;
    padding: 164rpx 44rpx 0 44rpx;
    display: grid;
  }

  image {
    width: 478rpx;
    height: 294rpx;
    margin: auto;
  }

  text {
    text-align: center;
    display: block;

    &:nth-of-type(1) {
      font-weight: 500;
      font-size: 28rpx;
      color: #000000;
      line-height: 40rpx;
      margin: 40rpx 0 94rpx 0;
    }
  }

  .btn {
    height: 90rpx;
    background: #3b5df3;
    border-radius: 45rpx;
    font-size: 36rpx;
    color: #ffffff;
    line-height: 90rpx;
    text-align: center;
    margin: 0 0 120rpx 0;
  }
}